@extends('Admin.layouts.common')

@section('content')
    <div class="container">

        @if(count($errors))
            <div class="alert alert-danger">
                <ul>
                    @foreach($errors->all() as $err)
                        <li>{{ $err }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        @if (Session::has('msg'))
            <div class="alert alert-success">
                <ul>
                        <li>{{ Session::get('msg') }}</li>
                </ul>
            </div>
        @endif
        <form method="post">
            {{ csrf_field() }}
            

            <div class="form-group required">
                <label class="control-label">修改邀请码</label>
                <input name="invitation_code" type="text" class="form-control" value="{{$data->invitation_code}}">
            </div>
            <div class="form-group">
                <button class="btn btn-primary btn-block" type="submit">保存</button>
            </div>
        </form>
    </div>
@endsection